package com.healthy_software.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.healthy_software.enums.DietType;
import lombok.*;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Builder
@Accessors(chain = true)
@TableName("goal_details")
public class GoalDetail {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    /**
     * 外键
     */
    @TableField(value = "goal_id")

    private int goalId;

    private int daysPerWeek;

    private int durationPerDay;

    private DietType dietType;

    private int targetCalories;

    private int moodTrackingEnabled;

    private String meditationTime;

    private LocalDateTime createdAt;

}
